package com.example.springboot;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author yuwl
 * @description
 * @since 2023-08-18 16:59
 */
@Data
@ToString
@Document(value = "order")
public class Order {

    @Id
    private Integer id;

    @Field("cust_id")
    private String custId;

    @Field("ord_date")
    private LocalDateTime ordDate;

    private String status;

    private Double amount;
}
